package com.blb.mybatis.mapper;

import com.blb.mybatis.entity.Logistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LogisticsMapper {

    List<Logistics> selectAll();

    void delLogistics(@Param("id") Long id);

    void addLogistics(@Param("goodsId") long goodsId,@Param("shippingTime")String shippingTime,@Param("arrivalTime")String  arrivalTime,@Param("quantity")String quantity,@Param("shipFromAddressId")long shipFromAddressId,@Param("shippingAddressId")long shippingAddressId);

    void updateLogistics(Logistics logistics);
}
